﻿using Terraria.ID;
using Terraria;
using Terraria.ModLoader;
using EAS.Common.Players;

namespace EAS.Content.Items
{
    public class EyeOfFury : ModItem
    {
        public override void SetDefaults()
        {
            Item.width = 30;
            Item.height = 30;            
            Item.value = Item.sellPrice(0, 1, 0, 0);
            Item.accessory = true;            
            Item.rare = ItemRarityID.Master;
            Item.master = true;
        }

        public override void SetStaticDefaults() => Item.ResearchUnlockCount = 1;

        public override void UpdateAccessory(Player player, bool hideVisual)
        {            
            player.GetModPlayer<AccPlayer>().EyeOfFury = true;
        }
    }
}
